package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Immune;
import com.antdesignbackend.backend.entity.entityVo.ImmuneVo;
import com.antdesignbackend.backend.mapper.ImmuneMapper;
import com.antdesignbackend.backend.service.ImmuneService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImmuneServiceImpl extends ServiceImpl<ImmuneMapper, Immune> implements ImmuneService {
    @Autowired
    ImmuneMapper immuneMapper;

    @Override
    public List<ImmuneVo> search(QueryWrapper<ImmuneVo> queryWrapper, Page<ImmuneVo> page) {
        return immuneMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<ImmuneVo> queryWrapper) {
        return immuneMapper.count(queryWrapper);
    }
}
